package com.example.desinger.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.desinger.common.R;
import com.example.desinger.domain.dto.PageDto;
import com.example.desinger.entity.Students;
import org.springframework.web.multipart.MultipartFile;

import java.util.ArrayList;

public interface StudentsService extends IService<Students> {
    //查询用户是否存在
    int selectByAccount(String account, int classId);

    //通过账户和密码查询用户
    R<Students> selectStudentByPAndW(Students students);

    //通过id查找班级的全部学生
    R<PageDto<Students>> queryStudentsPage(int pageNo, int pageSize, int classId);

    // 分组操作
    ArrayList opertorGroup(int type, int classId);

    R<String> addStudents(MultipartFile file, int classId);
}
